<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('余额充值')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-tranlog-add">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">客户ID：</label>
            <div class="col-sm-8">
                <input name="customerId" th:value="${customerId}" readonly class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">账变类型：</label>
            <div class="col-sm-8">
                <div class="radio-box" th:each="dict : ${@dict.getType('billChangeType')}">
                    <input type="radio" th:id="${'type_' + dict.dictCode}" name="billChangeType" th:value="${dict.dictValue}" >
                    <label th:for="${'type_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">交易金额(元)：</label>
            <div class="col-sm-8">
                <input name="payFee" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">备注：</label>
            <div class="col-sm-8">
                <textarea name="remark" class="form-control">[[*{remark}]]</textarea>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var prefix = ctx + "biz/wallet"
    $("#form-tranlog-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/recharge/save", $('#form-tranlog-add').serialize());
        }
    }
</script>
</body>
</html>